home *** CD-ROM | disk | FTP | other *** search
- Echo Off
- For %%a in (A: B: C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:) do if .%1==.%%a goto OKDrive
- For %%a in (a: b: c: d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) do if .%1==.%%a goto OKDrive
- GoTo NoDrive
- :OKDrive
- If Not .%2==. GoTo Install
- Echo ╔═══════════════════════════════════════════════════════╗
- Echo ║ W A R N I N G ║
- Echo ║ ║
- Echo ║ You did not specify a directory where you want ║
- Echo ║ EasyChart installed. EasyChart will be installed ║
- Echo ║ in the default directory on drive %1. If you do not ║
- Echo ║ want this to happen, you should press Ctrl-C now. ║
- Echo ║ ║
- Echo ╚═══════════════════════════════════════════════════════╝
- Pause
- :Install
- If Not Exist EZC.EXE GoTo NoSoft
- If .%2==. GoTo SkipMD
- If .%2==.\ GoTo SkipMD
- Echo ╔═══════════════════════════════════════════════════════╗
- Echo ║ ║
- Echo ║ The installation procedure will now attempt to make ║
- Echo ║ the directory you specified. If you receive the ║
- Echo ║ message "Unable to create directory" this is ok. ║
- Echo ║ ║
- Echo ╚═══════════════════════════════════════════════════════╝
- MkDir %1%2
- :SkipMD
- Echo ╔═════════════════════════════════════════════════════════╗
- Echo ║ ║
- Echo ║ EasyChart and all its associated files will be copied. ║
- Echo ║ ║
- Echo ╚═════════════════════════════════════════════════════════╝
- Copy *.* %1%2/v
- Echo ╔═════════════════════════════════════════════════════════╗
- Echo ║ ║
- Echo ║ If you did not receive the message "Insufficient disk ║
- Echo ║ space", the EasyChart installation is complete. ║
- Echo ║ ║
- Echo ╚═════════════════════════════════════════════════════════╝
- GoTo Finish
- :NoDrive
- Echo ╔══════════════════════════════════════════════════════╗
- Echo ║ ║
- Echo ║ No drive was specified on the INSTALL command. The ║
- Echo ║ syntax for the INSTALL command is: ║
- Echo ║ ║
- Echo ║ INSTALL [drive:] [\directory] ║
- Echo ║ ║
- Echo ║ where: [drive:] - is the drive where EasyChart ║
- Echo ║ will be installed. ║
- Echo ║ ║
- Echo ║ [\directory] - is the directory where ║
- Echo ║ EasyChart will be installed. ║
- Echo ║ ║
- Echo ║ for example: INSTALL C: \EZC ║
- Echo ║ ║
- Echo ╚══════════════════════════════════════════════════════╝
- GoTo Finish
- :NoSoft
- Echo ╔═════════════════════════════════════════════════╗
- Echo ║ ║
- Echo ║ EZC.EXE was not found on the default drive. ║
- Echo ║ Check that the default drive is set where ║
- Echo ║ the installation diskette is located. ║
- Echo ║ ║
- Echo ╚═════════════════════════════════════════════════╝
- :Finish
-